Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 3 - Endpoints / Endpoints Reference
Constants and Data Types


Buffer Information Structure

The buffer information structure is provided for your convenience in keeping track of where you last left off in an OTBuffer structure. Because the no-copy receive buffer structure (OTBuffer) is read-only, you may need to copy the data in sections as you progress through the no-copy receive buffer.

The buffer information structure is defined by the OTBufferInfo data type.

   struct OTBufferInfo
{
   OTBuffer*fBuffer;
   size_t   fOffset;
   UInt8    fPad;
};

typedef struct OTBufferInfo OTBufferInfo;
Field Description
fBuffer
A pointer to the no-copy receive buffer.
fOffset
An offset indicating how much of the buffer to read.
fPad
Reserved.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996